﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace TPCN.DAL
{
   public class TrangThaiDonHangObj
    {
        private string _TrangthaiID;

        public string TrangthaiID
        {
            get { return _TrangthaiID; }
            set { _TrangthaiID = value; }
        }
        private string _Tentrangthai;

        public string Tentrangthai
        {
            get { return _Tentrangthai; }
            set { _Tentrangthai = value; }
        }
        public TrangThaiDonHangObj SetValuesFromDataReader(IDataReader reader)
        {
            TrangThaiDonHangObj obj = new TrangThaiDonHangObj();
            obj.TrangthaiID = (reader["TrangthaiID"] is DBNull) ? String.Empty : reader["TrangthaiID"].ToString();
            obj.Tentrangthai = (reader["Tentrangthai"] is DBNull) ? String.Empty : reader["Tentrangthai"].ToString();
            return obj;
        }
    }
}
